﻿<Window x:Class="RapidWPFDemo.NameAddress"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:rl="clr-namespace:Jalindi.RapidLayout;assembly=RapidLayout2009.Windows"
    Title="NameAddress" Height="261" Width="406">
    <rl:RapidPanel Name="Panel" ShouldDebug="True" >
            <Label Content="Name" rl:RapidPanel.Horizontal="e=labels,a=left" rl:RapidPanel.Left="preferred"
               rl:RapidPanel.Right="preferred,clamp,tie,t=name" VerticalAlignment="Top" HorizontalAlignment="Right"></Label>
        <TextBox Name="name" rl:RapidPanel.Horizontal="spring" rl:RapidPanel.Top="preferred" 
                 rl:RapidPanel.Right="preferred" VerticalAlignment="Top"></TextBox>
        <Label Content="Address" rl:RapidPanel.Horizontal="e=labels,a=left" rl:RapidPanel.Left="preferred"
               rl:RapidPanel.Right="preferred,clamp,tie,t=address" VerticalAlignment="Top" HorizontalAlignment="Right"></Label>
        <TextBox Name="address" rl:RapidPanel.Top="preferred,t=name"
                 rl:RapidPanel.Horizontal="spring" rl:RapidPanel.Right="preferred" VerticalAlignment="Top"></TextBox>
        <Label Content="City" rl:RapidPanel.Horizontal="e=labels,a=left" 
               rl:RapidPanel.Right="clamp,t=city,spring" VerticalAlignment="Top" HorizontalAlignment="Right"></Label>
        <TextBox Name="city" rl:RapidPanel.Top="preferred,t=address" rl:RapidPanel.Left="zero,t=address:left"
                 rl:RapidPanel.Horizontal="spring" VerticalAlignment="Top"></TextBox>
        <Label Content="Zip" rl:RapidPanel.Horizontal="preferred"
               rl:RapidPanel.Left="preferred,tie,t=city" 
               rl:RapidPanel.Right="preferred,clamp,tie,t=zip" VerticalAlignment="Top"> </Label>
        <TextBox Name="zip" rl:RapidPanel.Top="preferred,t=address"
                 rl:RapidPanel.Horizontal="spring" rl:RapidPanel.Right="preferred" VerticalAlignment="Top"></TextBox>
    </rl:RapidPanel>
</Window>
